import request from "../utils/request";

export function getUserList(data){
    return request({
        url : "/admin/user/list",
        method : "get",
        data
    })
}

export function setUserRoot(data){
    return request({
        url : "/admin/user/root",
        method : "post",
        data
    })
}

export function getUserDetail(uid){
    return request({
        url : "/admin/user/detail",
        method : "get",
        params : {
            uid
        }
    })
}

export function getLog(params){       //
    return request({
        url:"/admin/user/log",
        method:"get",
        params
    })
}


export default {
    getUserList,
    setUserRoot,
    getUserDetail,
    getLog
}